package com.hc.satoken.controller;

import cn.dev33.satoken.stp.StpUtil;
import cn.dev33.satoken.util.SaResult;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/permission")
public class PermissionController {
    @RequestMapping("/getUserPermission")
    public SaResult tokenInfo() {
        return SaResult.data(StpUtil.getPermissionList().toString()+StpUtil.getRoleList());
    }
}
